package com.project.springboot.entity;

import com.gitee.yongzhuzl.commonutil.util.clone.CloneSupport;

import java.math.BigDecimal;

/**
 * description: 汽车实体类
 * @author 朱正磊
 * @date 2024-09-18 13:06:56
 */
public class Car extends CloneSupport<Car> {

    // 颜色
    private String color;

    // 品牌
    private String brand;

    // 价格
    private BigDecimal price;

    // 优势
    private Advantage advantage;

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Advantage getAdvantage() {
        return advantage;
    }

    public void setAdvantage(Advantage advantage) {
        this.advantage = advantage;
    }

    @Override
    public String toString() {
        return "Car{" +
                "color='" + color + '\'' +
                ", brand='" + brand + '\'' +
                ", price=" + price +
                ", advantage=" + advantage +
                '}';
    }

}
